package com.reins.bookstore.dao;

import com.reins.bookstore.entity.Book;
import com.reins.bookstore.repository.BookRepository;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface BookDao {
    List<Book> findAll();

    Book findById(Integer id);

    Book save(Book add);

    void deleteById(Integer id);

}
